import MyUpload from "../../server/MyUpload";

Component({

  /**
   * 组件的属性列表
   */
  properties: {

  },

  /**
   * 组件的初始数据
   */
  data: {
    uploadLink: '',
  },

  /**
   * 组件的方法列表
   */
  methods: {
    uploadHandle() {
      new MyUpload().init().then(res => {
        if (!res) return;
        this.setData({ uploadLink: res });
        this.triggerEvent('uploadSuccess', res);
      })

    }
  }
})